package constants;

/** The Enum with all the colors of the bricks.
 * @author Team 1
 *
 */
public enum BrickColor {
	BLUE, GREEN, RED, YELLOW;
	
	public static BrickColor intToBrickColor(int value) {
		switch(value) {
		case 0:
			return BrickColor.BLUE;
		case 1:
			return BrickColor.GREEN;
		case 2:
			return BrickColor.RED;
		default:
			return BrickColor.YELLOW;
		}
	}
	
	public Integer brickColorToInteger() {
		switch (this) {
		case BLUE:
			return 0;
		case GREEN:
			return 1;
		case RED:
			return 2;
		default:
			return 3;
		}
	}
}